<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
   
</head>
<body>
  <script>
      var a='12345';
      var b='上山打老虎';

      var c=a+b;
      console.log(c);


      var a1 = '123';
      var a2 = "321";
      console.log(a1+a2);

      var b1 = '123';
      var b2 = "321.1";
      var b3 = false;
      var b4 = undefined;
      var b5 = new Array(1,2,3);
      var b6 = null;
      var b7 = new Object();
      var b8 = function (){console.log(11111);};
      var b9 = function (){console.log(11111);return "aaaaaa"};


      console.log(b1+b2+b3+b4+b5+b6+b7+b8()+b9());


      //特性
      var s='小马哥';
      var str1='hello,s \n yoyoyo';
      var str2='hello,s \n yoyoyo';


      console.log(str1);
      console.log(str2);

      var str3 = 'hello,${s}';
      console.log(str3);


      //ES6 `` 反引号声明字符串
      //A
      var msg=`
          <img src="./1.jpg" width="200">
          <p>脏大爷说:"挺'好看'"</p>
          <p>你大爷说:嗯</p>
      `;
      //console.log(msg);
      document.write(msg);

      //B
      // x + y =z
      var x=5556,y=99;
      console.log(`${x}+${y}=${x+y}`);
  </script>

   
</body>
</html>


